<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import HelloWorld from './components/HelloWorld.vue'
import {useRouter} from 'vue-router'
const router = useRouter()
const go=()=>{
    router.push('/home')
}
</script>

<template>
  <div>
    <h1 @click="go">跳转</h1>
  </div>
 
</template>

<style scoped>

</style>

